-- GENERATED SPELL FOR [Shattered Hand Grunt] --


function spell0_16867(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16867', 6279, 1)
end

function spell1_16867(pUnit, Event) --@Soul Burden,n/a--
pUnit:FullCastSpellOnTarget(38879,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16867', 608, 1)
end

function spell2_16867(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16867', 553, 1)
end

function Sorts_16867(pUnit, Event)
local choix_sorts_16867 = math.random(0, 2)
if choix_sorts_16867 == 0 then
pUnit:RegisterEvent('spell0_16867', 1, 1)
end
if choix_sorts_16867 == 1 then
pUnit:RegisterEvent('spell1_16867', 1, 1)
end
if choix_sorts_16867 == 2 then
pUnit:RegisterEvent('spell2_16867', 1, 1)
end
end

function mob16867_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16867', math.random(1500, 3000), 1)
end

function mob16867_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16867_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16867_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16867, 1, 'mob16867_Action')
RegisterUnitEvent(16867, 2, 'mob16867_Leave')
RegisterUnitEvent(16867, 3, 'mob16867_Kill')
RegisterUnitEvent(16867, 4, 'mob16867_Die')
